import request from "@/utils/request.js";

const api_prefix = "/category";

export function categoryList(data) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/list`,
    method: "GET",
    data: data
  });
}

export function getCategorys(categoryName) {
  return request({
    //模板字符串拼接参数
    url: `${api_prefix}/byName/${categoryName}`,
    method: "GET",
  });
}
